package www.xpu.edu.app.job;

public class Test {
    public static void main(String[] args) {
     int[][] costs=new int[][]{{10,20},{30,200},{400,50},{30,20}};
        System.out.println(Cost(costs));

    }
    public static  int Cost(int[][] costs)
    {
        int sum=0;
        for (int i = 0; i < costs.length; i++) {
            sum+=Math.min(costs[i][0],costs[i][1]);
        }
        return sum;
    }
}
